package com.biz.primus.model.cart.exception;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * ShopCartException
 *
 * @author jia JKLiues
 * @date 2017年09月21日
 * @reviewer
 * @see
 */
@Getter
@AllArgsConstructor
public enum ShopCartException implements ExceptionType {
    USER_ID_IS_NULL(7800, "用户ID不能为空"),
    PRODUCT_CODE_IS_NULL(7801, "商品编码不能为空"),
    PRODUCT_NAME_IS_NULL(7802, "商品名称不能为空"),
    PRODUCT_LOGO_IS_NULL(7803, "商品LOGO不能为空"),
    USER_LEVEL_IS_NULL(7803, "用户等级不能为空"),
    PRICE_IS_NULL(7805, "商品价格不能为空"),
    PRODUCT_QUANTITY_LT_ZERO(7806, "商品数量不能小于或等于0"),
    PRODUCT_STOCK_LE_ZERO(7807, "商品库存小于0"),
    PRODUCT_SHOW_QUANTITY_LE_ZERO(7808, "商品展示数量小于0"),
    LIMIT_QUANTITY_LE_ZERO(7809, "商品限制数量小于0"),
    DEPOT_CODE_IS_NULL(7810, "门店编码不能为空"),
    PRODUCT_TYPE_IS_NULL(7811, "商品类型不能为空"),
    PRODUCT_NOT_FOUNT(7812, "找不到商品"),
    PRODUCT_STOCK_NOT_ENOUGH(7813, "商品库存不足"),
    CART_LIMIT(7814, "超过购物车上线");
    private int code;
    private String description;
}